package com.zsw.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 商品实体类
 * @author zhangsw
 */
@Data
@ApiModel(value="Commodity",description="商品实体类")
public class Commodity implements Serializable {
    @ApiModelProperty(value="商品编号",name="id")
    private Integer id;
    @ApiModelProperty(value="商品价格",name="price")
    private BigDecimal price;
    @ApiModelProperty(value="商品名称",name="name")
    private String name;
}
